import java.util.*;
public class TryCatch {
    public static void main(String[] args) throws ArithmeticException{
        Scanner input = new Scanner(System.in);
        System.out.print("Give x: "); int x = input.nextInt();
        System.out.print("Give y: "); int y = input.nextInt();
        if(y==0)
        {
            throw new ArithmeticException();
        }
            System.out.println("x / y = " + x/y);

//        catch(Exception e) {
//            System.out.println("y can't be zero!");
//        }
    }
}
